<?php
namespace Operation\Model;

class Storecount
{
    public $idStoreCount;
    public $originalStoreCountId;
    public $idStore;
    public $date;
    public $salesCount;
    public $storeCountExpected;
    public $realStoreCount;
    public $difference;
    public $comments;
    public $creditCardTotal;
    public $cashTotal;
    public $chequeTotal;
    public $voucherTotal;
    public $initialCashAmount;
    
    public function exchangeArray($data)
    {
        $this->idStoreCount = (isset($data['idStoreCount'])) ? $data['idStoreCount'] : null;
        $this->originalStoreCountId = (isset($data['originalStoreCountId'])) ? $data['originalStoreCountId'] : null;
        $this->idStore = (isset($data['idStore'])) ? $data['idStore'] : null;
        $this->date = (isset($data['date'])) ? $data['date'] : null;
        $this->salesCount = (isset($data['salesCount'])) ? $data['salesCount'] : null;
        $this->storeCountExpected = (isset($data['storeCountExpected'])) ? $data['storeCountExpected'] : null;
        $this->realStoreCount = (isset($data['realStoreCount'])) ? $data['realStoreCount'] : null;
        $this->difference = (isset($data['difference'])) ? $data['difference'] : null;
        $this->comments = (isset($data['comments'])) ? $data['comments'] : null;
        $this->creditCardTotal = (isset($data['creditCardTotal'])) ? $data['creditCardTotal'] : null;
        $this->cashTotal = (isset($data['cashTotal'])) ? $data['cashTotal'] : null;
        $this->chequeTotal = (isset($data['chequeTotal'])) ? $data['chequeTotal'] : null;
        $this->voucherTotal = (isset($data['voucherTotal'])) ? $data['voucherTotal'] : null;
        $this->initialCashAmount = (isset($data['initialCashAmount'])) ? $data['initialCashAmount'] : null;
    }
}